package com.beauty.order.client;

import com.beauty.order.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "beauty-user", path = "/api/user")
public interface UserClient {
    
    @GetMapping("/{userId}")
    Result<?> getUserById(@PathVariable("userId") String userId);
    
    @GetMapping("/customer/{customerId}")
    Result<?> getUserByCustomerId(@PathVariable("customerId") String customerId);
    
    @GetMapping("/profile/{userId}")
    Result<?> getUserProfile(@PathVariable("userId") String userId);
} 